package ejercicios;

import interfaces.tests.IsPalindrome;


public class IsPalindromeImpl implements IsPalindrome{
	public boolean isPalindrome(String s) {
		int endCondition = s.length() / 2;
		
		for(int index = 0; index < endCondition; index++){
			if (s.charAt(index) != s.charAt(s.length()-index-1)){
				return false;
			}
		}
		
		return true;
    }
}